package com.example.forum.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.forum.entity.TRoles;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author why
 * @since 2019-10-30
 */
public interface TRolesMapper extends BaseMapper<TRoles> {
    abstract List<String> getMenuCheckedPermissions(String roleid);

    abstract List<String> getNormalCheckedPermissions(String roleid);

    abstract List<Object> GetAllPermissionsForTree();

    abstract void deleteNormalPermissionsByRoleId(String roleid);

    abstract void deleteMenuPermissionsByRoleId(String roleid);

}
